layout.connect('allocation-changed', this._updateWorkspacesGeometry.bind(this));
Main.overview.connect('showing', this._updateSpacerVisibility.bind(this));
- Main.overview.connect('item-drag-begin', () => {
- let activePage = this.viewSelector.getActivePage();
- if (activePage != ViewSelector.ViewPage.WINDOWS)
- this.viewSelector.fadeHalf();
- });
- Main.overview.connect('item-drag-end', () => {
- this.viewSelector.fadeIn();
- });
- Main.overview.connect('item-drag-cancelled', () => {
- this.viewSelector.fadeIn();
- });
}
_updateWorkspacesGeometry() {
else
return ViewPage.SEARCH;
}
-
- fadeIn() {
- let actor = this._activePage;
- actor.ease({
- opacity: 255,
- duration: OverviewControls.SIDE_CONTROLS_ANIMATION_TIME / 2,
- mode: Clutter.AnimationMode.EASE_IN_QUAD
- });
- }
-
- fadeHalf() {
- let actor = this._activePage;
- actor.ease({
- opacity: 128,
- duration: OverviewControls.SIDE_CONTROLS_ANIMATION_TIME / 2,
- mode: Clutter.AnimationMode.EASE_OUT_QUAD
- });
- }
};
Signals.addSignalMethods(ViewSelector.prototype);